package main

import "crypto/des"

func main() {

	// 复制 16个byte 的前8个byte
	ede2Key := []byte("example key 1234")
	var tripleDESKey []byte
	tripleDESKey = append(tripleDESKey, ede2Key[:16]...)
	tripleDESKey = append(tripleDESKey, ede2Key[:8]...)
	// tripleDESKey = []byte("example key 1234example")

	_, err := des.NewTripleDESCipher(tripleDESKey)
	if err != nil {
		panic(err)
	}

	// See crypto/cipher

}

func EncryptDesCbc(str, key string) string {
	//data := []byte(str)
	//keyByte := []byte(key)


	return ""

}
